import { request } from "umi"
//获取信息列表
export const getMark = ()=>{
    return request('/Knowledge')
}
//发起上传接口
export const Toupdate=(id:string,status:string)=>{
    console.log(status)
    return request(`/knowledge/${id}`,{
        method:'PATCH',
        data:{
            status
        }
    })
}
//上传图片
export const uploadImage=(data:any)=>{
    return request('/file/upload?unique=0',{
        method:'POST',
        data,
        requestType: 'form'
    })
}

//展示文件
export const getfile = (page: number) => {
    return request(`/file?page=${page}&pageSize=12`)
}